import pkg from './package'

let basename = pkg.config.vd
let port = pkg.config.port
let env = pkg.config.env

let restApiMap = {
  fat: 'https://gateway.m.fws.qa.nt.ctripcorp.com/restapi/soa2',
  uat: 'https://gateway.m.uat.qa.nt.ctripcorp.com/restapi/soa2',
  prod: 'https://m.ctrip.com/restapi/soa2',
}

let restApi = restApiMap[env]

export default {
  basename,
  port,
  routes: 'routes',
  layout: 'layout',
  restapi: restApi,
}